/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import android.os.Parcel;
import android.os.Parcelable;
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.taobao.accs.common.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
//import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
//
///* compiled from: VideoItemEntity.kt */
//@Parcelize
//@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b%\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001BY\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\u0006\u0010\u0007\u001a\u00020\u0003\u0012\u0006\u0010\b\u001a\u00020\u0003\u0012\u0006\u0010\t\u001a\u00020\u0005\u0012\u0006\u0010\n\u001a\u00020\u0005\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\u0005\u0012\u0006\u0010\f\u001a\u00020\u0005\u0012\b\u0010\r\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u000eJ\t\u0010\u001d\u001a\u00020\u0003HÆ\u0003J\u0010\u0010\u001e\u001a\u0004\u0018\u00010\u0005HÆ\u0003¢\u0006\u0002\u0010\u0014J\t\u0010\u001f\u001a\u00020\u0005HÆ\u0003J\t\u0010 \u001a\u00020\u0003HÆ\u0003J\t\u0010!\u001a\u00020\u0003HÆ\u0003J\t\u0010\"\u001a\u00020\u0003HÆ\u0003J\t\u0010#\u001a\u00020\u0005HÆ\u0003J\t\u0010$\u001a\u00020\u0005HÆ\u0003J\u0010\u0010%\u001a\u0004\u0018\u00010\u0005HÆ\u0003¢\u0006\u0002\u0010\u0014J\t\u0010&\u001a\u00020\u0005HÆ\u0003Jv\u0010'\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00032\b\b\u0002\u0010\u0007\u001a\u00020\u00032\b\b\u0002\u0010\b\u001a\u00020\u00032\b\b\u0002\u0010\t\u001a\u00020\u00052\b\b\u0002\u0010\n\u001a\u00020\u00052\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u0010\f\u001a\u00020\u00052\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u0005HÆ\u0001¢\u0006\u0002\u0010(J\t\u0010)\u001a\u00020\u0005HÖ\u0001J\u0013\u0010*\u001a\u00020+2\b\u0010,\u001a\u0004\u0018\u00010-HÖ\u0003J\t\u0010.\u001a\u00020\u0005HÖ\u0001J\t\u0010/\u001a\u00020\u0003HÖ\u0001J\u0019\u00100\u001a\u0002012\u0006\u00102\u001a\u0002032\u0006\u00104\u001a\u00020\u0005HÖ\u0001R\u0011\u0010\b\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\n\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u0015\u0010\r\u001a\u0004\u0018\u00010\u0005¢\u0006\n\n\u0002\u0010\u0015\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\f\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0012R\u0011\u0010\u0007\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0010R\u0011\u0010\t\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0012R\u0015\u0010\u000b\u001a\u0004\u0018\u00010\u0005¢\u0006\n\n\u0002\u0010\u0015\u001a\u0004\b\u0019\u0010\u0014R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u0010R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u0012R\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u0010¨\u00065"}, d2 = {"Lcom/jcds/learneasy/entity/VideoItemEntity;", "Landroid/os/Parcelable;", "videoKey", "", "videoType", "", "videoTypeName", "title", "coverImage", "totalCount", "finishCount", "totalPeople", "textbookId", "specialOrFeatureId", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IILjava/lang/Integer;ILjava/lang/Integer;)V", "getCoverImage", "()Ljava/lang/String;", "getFinishCount", "()I", "getSpecialOrFeatureId", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getTextbookId", "getTitle", "getTotalCount", "getTotalPeople", "getVideoKey", "getVideoType", "getVideoTypeName", "component1", "component10", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IILjava/lang/Integer;ILjava/lang/Integer;)Lcom/jcds/learneasy/entity/VideoItemEntity;", "describeContents", "equals", "", DispatchConstants.OTHER, "", "hashCode", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", Constants.KEY_FLAGS, "app_huaweiRelease"}, k = 1, mv = {1, 7, 1}, xi = 48)
/* loaded from: classes2.dex */
public final class VideoItemEntity implements Parcelable {
    @NotNull
    public static final Parcelable.Creator<VideoItemEntity> CREATOR = new Creator();
    @NotNull
    private final String coverImage;
    private final int finishCount;
    @Nullable
    private final Integer specialOrFeatureId;
    private final int textbookId;
    @NotNull
    private final String title;
    private final int totalCount;
    @Nullable
    private final Integer totalPeople;
    @NotNull
    private final String videoKey;
    private final int videoType;
    @NotNull
    private final String videoTypeName;

    /* compiled from: VideoItemEntity.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<VideoItemEntity> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final VideoItemEntity createFromParcel(@NotNull Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            return new VideoItemEntity(parcel.readString(), parcel.readInt(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt(), parcel.readInt(), parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()), parcel.readInt(), parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()));
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final VideoItemEntity[] newArray(int i2) {
            return new VideoItemEntity[i2];
        }
    }

    public VideoItemEntity(@NotNull String videoKey, int i2, @NotNull String videoTypeName, @NotNull String title, @NotNull String coverImage, int i3, int i4, @Nullable Integer num, int i5, @Nullable Integer num2) {
        Intrinsics.checkNotNullParameter(videoKey, "videoKey");
        Intrinsics.checkNotNullParameter(videoTypeName, "videoTypeName");
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(coverImage, "coverImage");
        this.videoKey = videoKey;
        this.videoType = i2;
        this.videoTypeName = videoTypeName;
        this.title = title;
        this.coverImage = coverImage;
        this.totalCount = i3;
        this.finishCount = i4;
        this.totalPeople = num;
        this.textbookId = i5;
        this.specialOrFeatureId = num2;
    }

    @NotNull
    public final String component1() {
        return this.videoKey;
    }

    @Nullable
    public final Integer component10() {
        return this.specialOrFeatureId;
    }

    public final int component2() {
        return this.videoType;
    }

    @NotNull
    public final String component3() {
        return this.videoTypeName;
    }

    @NotNull
    public final String component4() {
        return this.title;
    }

    @NotNull
    public final String component5() {
        return this.coverImage;
    }

    public final int component6() {
        return this.totalCount;
    }

    public final int component7() {
        return this.finishCount;
    }

    @Nullable
    public final Integer component8() {
        return this.totalPeople;
    }

    public final int component9() {
        return this.textbookId;
    }

    @NotNull
    public final VideoItemEntity copy(@NotNull String videoKey, int i2, @NotNull String videoTypeName, @NotNull String title, @NotNull String coverImage, int i3, int i4, @Nullable Integer num, int i5, @Nullable Integer num2) {
        Intrinsics.checkNotNullParameter(videoKey, "videoKey");
        Intrinsics.checkNotNullParameter(videoTypeName, "videoTypeName");
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(coverImage, "coverImage");
        return new VideoItemEntity(videoKey, i2, videoTypeName, title, coverImage, i3, i4, num, i5, num2);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof VideoItemEntity)) {
            return false;
        }
        VideoItemEntity videoItemEntity = (VideoItemEntity) obj;
        return Intrinsics.areEqual(this.videoKey, videoItemEntity.videoKey) && this.videoType == videoItemEntity.videoType && Intrinsics.areEqual(this.videoTypeName, videoItemEntity.videoTypeName) && Intrinsics.areEqual(this.title, videoItemEntity.title) && Intrinsics.areEqual(this.coverImage, videoItemEntity.coverImage) && this.totalCount == videoItemEntity.totalCount && this.finishCount == videoItemEntity.finishCount && Intrinsics.areEqual(this.totalPeople, videoItemEntity.totalPeople) && this.textbookId == videoItemEntity.textbookId && Intrinsics.areEqual(this.specialOrFeatureId, videoItemEntity.specialOrFeatureId);
    }

    @NotNull
    public final String getCoverImage() {
        return this.coverImage;
    }

    public final int getFinishCount() {
        return this.finishCount;
    }

    @Nullable
    public final Integer getSpecialOrFeatureId() {
        return this.specialOrFeatureId;
    }

    public final int getTextbookId() {
        return this.textbookId;
    }

    @NotNull
    public final String getTitle() {
        return this.title;
    }

    public final int getTotalCount() {
        return this.totalCount;
    }

    @Nullable
    public final Integer getTotalPeople() {
        return this.totalPeople;
    }

    @NotNull
    public final String getVideoKey() {
        return this.videoKey;
    }

    public final int getVideoType() {
        return this.videoType;
    }

    @NotNull
    public final String getVideoTypeName() {
        return this.videoTypeName;
    }

    public int hashCode() {
        int hashCode = ((((((((((((this.videoKey.hashCode() * 31) + this.videoType) * 31) + this.videoTypeName.hashCode()) * 31) + this.title.hashCode()) * 31) + this.coverImage.hashCode()) * 31) + this.totalCount) * 31) + this.finishCount) * 31;
        Integer num = this.totalPeople;
        int i2 = 0;
        int hashCode2 = (((hashCode + (num == null ? 0 : num.hashCode())) * 31) + this.textbookId) * 31;
        Integer num2 = this.specialOrFeatureId;
        if (num2 != null) {
            i2 = num2.hashCode();
        }
        return hashCode2 + i2;
    }

    @NotNull
    public String toString() {
        return "VideoItemEntity(videoKey=" + this.videoKey + ", videoType=" + this.videoType + ", videoTypeName=" + this.videoTypeName + ", title=" + this.title + ", coverImage=" + this.coverImage + ", totalCount=" + this.totalCount + ", finishCount=" + this.finishCount + ", totalPeople=" + this.totalPeople + ", textbookId=" + this.textbookId + ", specialOrFeatureId=" + this.specialOrFeatureId + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NotNull Parcel out, int i2) {
        Intrinsics.checkNotNullParameter(out, "out");
        out.writeString(this.videoKey);
        out.writeInt(this.videoType);
        out.writeString(this.videoTypeName);
        out.writeString(this.title);
        out.writeString(this.coverImage);
        out.writeInt(this.totalCount);
        out.writeInt(this.finishCount);
        Integer num = this.totalPeople;
        if (num == null) {
            out.writeInt(0);
        } else {
            out.writeInt(1);
            out.writeInt(num.intValue());
        }
        out.writeInt(this.textbookId);
        Integer num2 = this.specialOrFeatureId;
        if (num2 == null) {
            out.writeInt(0);
            return;
        }
        out.writeInt(1);
        out.writeInt(num2.intValue());
    }
}